<?php
/**
 * Define the default values for all the config variables.
 *
 * @copyright RFI, 2008-02-08
 */

$defaults = array();

$defaults['navigation_before_content'] = 1;

$defaults['content_float'] = 'none';
$defaults['content_clear'] = 'none';
$defaults['content_width'] = '30em';
$defaults['content_height'] = '100%';
$defaults['content_paragraphs'] = 1;

$defaults['navigation_float'] = 'none';
$defaults['navigation_clear'] = 'none';
$defaults['navigation_width'] = '20em';
$defaults['navigation_height'] = '100%';
$defaults['navigation_extra_links'] = 0;

session_start();

foreach ($defaults as $k => $v) {
	if (isset($_GET[$k])) {
		$current_values[$k] = $_GET[$k];
		
		$_SESSION[$k] = $current_values[$k];
	} elseif (isset($_SESSION[$k])) {
		$current_values[$k] = $_SESSION[$k];
	} else {
		$current_values[$k] = $defaults[$k];
		
		$_SESSION[$k] = $current_values[$k];
	}
}

?>